package org.example.design.factory.annotationfactory;


import org.example.util.ScanTool;

import java.util.Map;

/**
 * @author gugu
 * @version 0.0.3
 * @description DataFactory
 * @since 2021/11/5 9:37
 */
public class AnnotationFactory {

    private static final Map<Integer, Object> DATA_MAP;

    static {
        DATA_MAP = ScanTool.init();
    }

    private AnnotationFactory() {}

    public static Object getInstance(Integer key) {
        return DATA_MAP.get(key);
    }
}


